/**
 * Copyright (c) 2020-2021 ThunderSoft
 * All Rights Reserved by Thunder Software Technology Co., Ltd and its affiliates.
 * You may not use, copy, distribute, modify, transmit in any form this file
 * except in compliance with ThunderSoft in writing by applicable law.
 *
 */
/**
 * @file    hal_iot_uart.c
 * @brief   hal uart funtion 
 * @details hal uart funtion
 * @version 1.0
 * @author  Hu lei
 * @date    2021-03-05
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2021-03-05               Hu lei              Create it.
 *
 */

#include "iot_errno.h"
#include "iot_uart.h"
#include "bl602_glb.h"
#include "bl602_uart.h"
#include "bl_uart.h"

#define UNUSED(x) ((void)(x))

unsigned int IoTUartInit(unsigned int id, const IotUartAttribute *param)
{
    UNUSED(id);
    UNUSED(param);

    return IOT_SUCCESS;
}

int IoTUartRead(unsigned int id, unsigned char *data, unsigned int dataLen)
{
    UNUSED(id);
    UNUSED(data);
    UNUSED(dataLen);

    return IOT_SUCCESS;
}

int IoTUartWrite(unsigned int id, const unsigned char *data, unsigned int dataLen)
{
    UNUSED(id);
    UNUSED(data);
    UNUSED(dataLen);

    return IOT_SUCCESS;
}

unsigned int IoTUartDeinit(unsigned int id)
{
    UNUSED(id);

    return IOT_SUCCESS;
}

unsigned int IoTUartSetFlowCtrl(unsigned int id, IotFlowCtrl flowCtrl)
{
    UNUSED(id);
    UNUSED(flowCtrl);

    return IOT_SUCCESS;
}
